package com.lky.marshall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * Created by
 * autor : Marshall lky
 * datetime: 2021/4/16 11:27
 */

/**
 * 封装页面所有可能传递过来的查询条件
 *
 * catalog3Id=61&keyword=小米&sort=saleCount_asc&hasStock=0/1
 */
@Data
public class SearchParams {

    private String keyword; //页面传递过来的检索参数，全文匹配关键字
    private Long catalog3Id; //三级分类ID
    /**
     * sort=saleCount_asc/desc
     * sort=skuPrice_asc/desc
     * sort=hotScore_asc/desc
     */
    private String sort; //排序条件
    /**
     * hasStock(是否有货),skuPrice(价格区间),brandId,catalog3Id,attrs
     *
     * hasStock=0/1
     * skuPrice=1_500/_500/500_
     * brandId=1
     * attrs=1_其他:安卓   1号系统属性为 其他或安卓的
     */
    private Integer hasStock;//是否只显示有货  0:无 1:有
    private String skuPrice; //价格区间
    private List<Long> brandId;//品牌id,按照品牌查询可以多选
    private List<String> attrs; //按照属性进行筛选
    private Integer pageNum = 1; //页码

}
